**** PROGRAM FILE FOR "INFORMAL VERSUS FORMAL BARGAINING STRUCTURES" PROJECT: RESULTS OF AGENCY DESIGN DIFFERENCES: ///
****                   COMPARING RELATIVE SPENDING PRIORITIES VIA BUDGETARY BARGAINING VERSUS BUDGETARY OUTCOMES ****
 
 
* OPEN STATA OUTPUT FILE LOG *

   log using "C:\Users\gk57526\Dropbox\Informal & Formal Bargaining (BAA Reforms)\JOP Replication File Materials\Output\execbudinfluence.08-26-2020.SI SECTION 3.EVALUATING AGENCY DESIGN DIFFERENCES.comments.smcl" 


   
 * OPEN "EXECUTIVE BUDGETARY INFLUENCE" DATABASE WITH NEWLY CREATED VARIABLES
 
use "C:\Users\gk57526\Dropbox\Informal & Formal Bargaining (BAA Reforms)\JOP Replication File Materials\Data\execbudinfluence.08-26-2020.REPORTED MODELS.REV.comments.dta", replace

 

*** DECLARE DATABASE AS A PANEL (AGENCY ID * FISCAL YEAR): 

xtset agenid fyear, yearly







*** PLAUSIBILITY TEST # 1: EVALUATE WHETHER SYSTEMATIC DIFFERENCES OCCUR IN OUTCOME VARIABLE IN RELATION TO AGENCY DESIGN DIFFERENCES? ***
*** PLAUSIBILITY UNDER THE CONDITION THAT NO SYSTEMATIC DIFFERENCES INVOLVING SELECTIVITY INSTRUMENTS WITH RESPECT TO OUTCOME/DEPENDENT VARIABLE 



*** EVALUATE EXECUTIVEAGENCY: ARE THERE DIFFERENCES IN BUDGET OUTCOMES FOR EXECUTIVE DEPARTMENTS VERSUS INDEPENDENT AGENCIES? ***

quietly movestay (congbudchangereg2 l1congbudchangereg2  execbudchangereg2 bureauofbudget ebcreg2baa lnagencyheadtenure   /// 
baalnaht ebcreg2lnaht ebcreg2baalnaht lnagencyage unifiedpartygovt presadminyear) if agenid!=15, ///
select(regimereg = executiveagency ) difficult


*** TABLE SI-3: REGULAR DISCRETIONARY BUDGET GROWTH [SECTION 3: SUPPORTING INFORMATION DOCUMENT] **

ttest congbudchangereg2 if e(sample), by(executiveagency) unequal
*
*
*

quietly movestay (congbudchangetot2 l1congbudchangetot2  execbudchangetot2 bureauofbudget ebctot2baa lnagencyheadtenure   /// 
baalnaht ebctot2lnaht ebctot2baalnaht lnagencyage  unifiedpartygovt presadminyear) if agenid!=15, ///
select(regimereg = executiveagency) difficult


*** TABLE SI-3: TOTAL DISCRETIONARY BUDGET GROWTH [SECTION 3: SUPPORTING INFORMATION DOCUMENT] **

ttest congbudchangetot2 if e(sample), by(executiveagency) unequal
*
*
*
*

*****************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



*** PLAUSIBILITY TEST # 2: EVALUATE WHETHER SYSTEMATIC DIFFERENCES OCCUR IN BUDGETARY BARGAINING REGIME IN RELATION TO AGENCY DESIGN DIFFERENCES? ***
*** PLAUSIBILITY UNDER THE CONDITION THAT SYSTEMATIC DIFFERENCES INVOLVING AGENCY DESIGN OCCURS WITHIN EACH BUDGETARY BARGAINING REGIME 



*** EVALUATE EXECUTIVEAGENCY: ARE THERE DIFFERENCES IN BUDGET OUTCOMES FOR EXECUTIVE DEPARTMENTS VERSUS INDEPENDENT AGENCIES? ***

quietly movestay (congbudchangereg2 l1congbudchangereg2  execbudchangereg2 bureauofbudget ebcreg2baa lnagencyheadtenure   /// 
baalnaht ebcreg2lnaht ebcreg2baalnaht lnagencyage unifiedpartygovt presadminyear) if agenid!=15, ///
select(regimereg = executiveagency ) difficult



*** TABLE SI-3: PROPORTION OF 'AUSTERE' EXECUTIVE BUDGET PROPOSALS: REGULAR DISCRETIONARY BUDGETS [SECTION 3: SUPPORTING INFORMATION DOCUMENT] **

ttest regimereg if e(sample), by(executiveagency) unequal
*



quietly movestay (congbudchangetot2 l1congbudchangetot2  execbudchangetot2 bureauofbudget ebctot2baa lnagencyheadtenure   /// 
baalnaht ebctot2lnaht ebctot2baalnaht lnagencyage  unifiedpartygovt presadminyear) if agenid!=15, ///
select(regimetot = executiveagency) difficult


*** TABLE SI-3: PROPORTION OF 'AUSTERE' EXECUTIVE BUDGET PROPOSALS: TOTAL DISCRETIONARY BUDGETS [SECTION 3: SUPPORTING INFORMATION DOCUMENT] **

ttest regimetot if e(sample), by(executiveagency) unequal
*


***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



 * CLOSE LOG FILE

 log close
 